package com.igo.config;

/**
 * @author lrx
 * @date 2022/5/7 22:01
 * @注释：
 */
public class QuartzConfig {
    private static final String LIKE_TASK_IDENTITY = "LikeTaskQuartz";

    // @Bean
    // public JobDetail quartzDetail(){
    //     return JobBuilder.newJob(LikeTask.class).withIdentity(LIKE_TASK_IDENTITY).storeDurably().build();
    // }
    //
    // @Bean
    // public Trigger quartzTrigger(){
    //     SimpleScheduleBuilder scheduleBuilder = SimpleScheduleBuilder.simpleSchedule()
    //             .withIntervalInSeconds(60)  //设置时间周期单位秒,这样效果更明显
    //             //.withIntervalInHours(2)  //两个小时执行一次
    //             .repeatForever();
    //     return TriggerBuilder.newTrigger().forJob(quartzDetail())
    //             .withIdentity(LIKE_TASK_IDENTITY)
    //             .withSchedule(scheduleBuilder)
    //             .build();
    // }
}
